package com.xhdx;

public class Test1 {
    public static void main(String[] args) {
        int loopCount = 80000;
        Integer value = 10;
        long startTime = System.currentTimeMillis();
        for (int j = 0; j < loopCount; j++) {
            String str = String.valueOf(value);
        }
        System.out.println("String.valueOf(value):" + (System.currentTimeMillis() - startTime) + "ms");
        startTime = System.currentTimeMillis();
        for (int j = 0; j < loopCount; j++) {
            String str = value.toString();
        }
        System.out.println("value.toString():" + (System.currentTimeMillis() - startTime) + "ms");
        startTime = System.currentTimeMillis();
        for (int j = 0; j < loopCount; j++) {
            String str = value + "";
        }
        System.out.println("value + \"\":" + (System.currentTimeMillis() - startTime) + "ms");
        
        int[] isp = new int[]{3,7, 9};
        System.out.println(isp.toString());
    }
}
